from selenium.webdriver.common.by import By
from base import Base
class Page(Base):
    #点击搜索
    def shoushuo(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().className("android.widget.RelativeLayout").instance(3)')
        ele=self.find_ele(loc)
        return ele
    #输入文字
    def shuru(self):
        loc=(By.ID,'com.achievo.vipshop:id/search_text_view')
        ele=self.find_ele(loc)
        return ele
    #点击搜索按钮
    def shoushuoaniou(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().resourceId("com.achievo.vipshop:id/tv_search")')
        ele=self.find_ele(loc)
        return ele